package GUI;
import java.awt.*;

public class TestFrame {
	public static void main(String[] args) {
		newFrame f=new newFrame("New Frame",200,300,500,300);
	}
}

class newFrame extends Frame {
	newFrame(String title,int x,int y,int width,int height){
		super(title);
		setLayout(null);
		setBackground(Color.black);
		setBounds(x, y, width, height);
		Panel p=new Panel(null);
		p.setBackground(Color.white);
		p.setBounds(width/4, height/4, width/2, height/2);
		add(p);
		setVisible(true);
	}
}